package 练习2;

//逢7过

public class test03 {
    public static void main(String[] args) {
   /*     for (int i = 1; i <= 100; i++) {
            if (i % 10 == 7 || i / 10 % 10 == 7 || i % 7 == 0) {
                System.out.println(i);
            }
        }
   */

   /*     for (int i = 1; i < 101; i++) {
            if(i%10==7||i/10%10==7||i%7==0){
                System.out.println("过");
            }else {
                System.out.println(i);
            }
        }

    */
        int count = 0;
        for (int i = 1; i <= 100; i++) {
            if (i % 10 == 7 || i / 10 % 10 == 7 || i % 7 == 0) {
                System.out.print("过" + "\t");
            } else
                System.out.print(i + "\t");

            count++;
            if (count % 5 == 0) {
                System.out.println();
            }
        }

    }
}
